package com.pactera.asmp.server.entity;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ProjectModuleDTO2{
    private Integer id;

    @NotEmpty(message = "模块名称不允许为空")
    @Size(max = 50,message = "模块名称长度不能超过50")
    @Pattern(regexp = "^[^\\s]+(\\s+[^\\s]+)*$", message = "模块名称格式不正确")
//    @Pattern(regexp = "^[^￥#%…&*@\\s]*$", message = "模块名称格式不正确")
    private String name;
    @Size(max = 100,message = "包名长度不能超过50")
    private String packageName;
    @Size(max = 200,message = "模块描述长度0-200")
    private String description;
}

